package 数据库.day3;

import redis.clients.jedis.Jedis;

public class RedisLiang {
    public void getCache(String key){
        Jedis jedis = new Jedis("127.0.0.1",6379);

        for (int i = 0; i < 10; i++){
            jedis.set(String.valueOf(i), "kkkk");
        }


        String value = jedis.get(key);
        System.out.println(value);
    }

    public static void main(String[] args){
        RedisLiang client = new RedisLiang();
        client.getCache("2");
    }
}
